package cdu.notFound.service.impl;

import cdu.notFound.Dao.OrderDao;
import cdu.notFound.Dao.impl.OrderDaoImpl;
import cdu.notFound.model.Goods;
import cdu.notFound.model.Order;
import cdu.notFound.model.User;
import cdu.notFound.service.OrderService;

import java.util.List;

public class OrderServiceImpl implements OrderService {

    OrderDao orderDao = new OrderDaoImpl();

    @Override
    public boolean doCreate(Order order) {
        return orderDao.doCreate(order);
    }

    @Override
    public List<Goods> findGoodsByUser(User user) {
        return orderDao.findGoodsByUser(user);
    }
}
